package com.huawei.classroom.student.h04;

public class Triangle {
	int a,b,c;
	
	public Triangle() {
		
	}
	public void setA(int a) {
		this.a=a;
	}
	public void setB(int b) {
		this.b=b;
	}
	public void setC(int c) {
		this.c=c;
	}
	public double getArea() {
		double p=(a+b+c)/2.0;
		double area=p * (p-a) * (p-b) * (p-c);
		return Math.sqrt(area);
	}
}
